package Annotation;

import demo.ContainerFactory;

public class test {
   public static void main(String[]args)throws IllegalAccessException,InstantiationException{
       ContainerFactory  factory = new ContainerFactory("factory");
       Object demo1 = factory.getBean("demo1");
       Object demo2 = factory.getBean("demo2");
       System.out.println(demo1);
       System.out.println(demo2);

 }
}
